<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        /*td{*/
        /*border: 1px solid;*/
        /*text-align-last: justify;*/
        /*margin: 0;*/
        /*}*/

        h3:last-child {
            color: red;
        }

        p:last-of-type {
            color: red;
        }
    </style>
</head>
<body>
<div>
    <p>fadsf</p>
    <p>fadsf</p>
    <h3>asdf</h3>
    <h3>asdf</h3>
</div>
<hr>
<div>
    <p>fadsf</p>
    <p>fadsf</p>
    <p>fadsf</p>
    <h3>asdf</h3>
    <h3>asdf</h3>
</div>

</body>
</html>